package com.youhome.service.mapper;


import com.youhome.service.model.BClient;
import com.youhome.service.model.Contacts;
import com.youhome.service.model.DateItem;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BClientMapper {
    int deleteByPrimaryKey(Long clientId);

    int insert(BClient record);

    int insertSelective(BClient record);

    BClient selectByPrimaryKey(Long clientId);

    int selectIsExistByCounselorIdAndPhone(BClient record);

    int selectIsExistByCompanyIdAndPhone(BClient record);

    int updateByPrimaryKeySelective(BClient record);

    int updateByPrimaryKey(BClient record);

    List<BClient> selectByBean(BClient record);

    List<BClient> selectCompanyIsClientByBean(BClient record);

    List<DateItem> selectLast30DayDateItemByShareGroupUUID(String shareGroupUuid);

    int updateStatusByPrimaryKey(BClient record);

    int statusDeleteByPrimaryKey(BClient record);

    List<Contacts> selectContactsByCompanyId(Long companyId);

    BClient selectByUserId(Long userId);

    int updateInvestmentByPrimaryKey(BClient client);

    int updatePhotoByUserId(BClient bClient);

    int updateByBasicsPrimaryKey(BClient client);

    int deleteByClientIdAndCounselorId(BClient client);

    int updateByClientIdAndCounselorId(BClient bClient);

    int selectExistsByPrimaryKey(Long clientId);
}